﻿@page "/"

<PageTitle>Home</PageTitle>

<h1>Hello, world!</h1>

Welcome to your new app.

<span>@_visible</span>

<Button Type="ButtonType.Primary" OnClick="@(() => { _visible = true;})">点击</Button>

<Modal @bind-Visible="_visible" Title="对话框">
    <span>显示一点点内容</span>
</Modal>

@code
{
    bool _visible = false;
}
